package com.qfmy.controller.user;

import com.qfmy.service.user.CustomerService;
import common.result.Result;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 清风明月
 * @Package app.controller.user
 * @date 2025/5/18
 * @description 客服
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/app/customer")
public class CustomerServiceController {

    /**
     * 注入service
     */
    @Resource
    private CustomerService customerService;


    /**
     * 客服
     * @return
     */
    @RequestMapping("/service")
    public Result service(@RequestParam String content){
        String text = customerService.service(content);
        return Result.ok(text);
    }

}
